

def reserve_bytes(data: str):
    lens = len(data)
    res = []
    flag = 0

    if lens <= 0:
        print("该数据为空，无法处理")
        return -1

    if lens % 2 == 1:
        print("该数据异常，无法处理")
        return -1

    while flag != lens / 2:
        res.append(data[2 * flag: 2 * (flag + 1)])
        flag += 1

    res.reverse()

    return "".join(res)


def read_bytes_16(data: str):
    return int(reserve_bytes(data), 16)


def deal_file_name(data: str):
    flag = 0
    res = ""
    while flag != len(data) / 4:
        data_slip = data[flag * 4: flag * 4 + 4]
        if (4 * flag) % 64 == 0:
            flag += 1
            continue
        if data_slip == "0000":
            break
        res += data_slip
        flag += 1

    byte_data = bytes.fromhex(res)
    ascii_string = byte_data.decode('utf-16-le', errors='ignore')
    return ascii_string


if __name__ == '__main__':
    print(deal_file_name("c1003100320033000000"))
